<div id="listaDeGuias" class="dialog">
	<h3 class="subtitulo"><g:message code="Guias de Tr&aacute;fego da DPG" /></h3>
	<table cellpadding="2" cellspacing="0" class="tabelaAzul">
		<tbody>
			<g:if test="${listaGuiasDeTrafego.size == 0}">
				<tr>
					<td ><g:message code="Nenhuma guia de tr&aacute;fego cadastrada"  /></td>
				
				</tr>
			</g:if>
			<g:else>
				<tr>
					<th class="cabecalhoTabela"><g:message code="N&uacute;mero da Guia" /></th>
	                        
					<th class="cabecalhoTabela"><g:message code="A&ccedil;&otilde;es" /></th>
					<th class="cabecalhoTabela"></th>
				</tr>
				
				<g:each in="${listaGuiasDeTrafego}" status="i" var="guiaAtual">
					<g:if test="${ i % 2 == 0 }">
		            	<tr>                        	 	                        
	                </g:if>
	                <g:else>
	                	<tr class="linhaAzulClara">
					</g:else>
						<td>
							<modalbox:createLink action="exibirGuiaAdicionada" id="${i}" title="Guia de Tr&aacute;fego" width="400">
		        				${fieldValue(bean: guiaAtual, field: "numeroDaGuia")}
		    				</modalbox:createLink>
						</td>
						<td>
							<g:link class="linkEdit" action="editarNovaGuia" id="${i}">
								<g:message code="editar"/>
							</g:link>
						</td>
						
						<td>
							<g:link class="linkDelete" action="excluirGuia" id="${i}" onclick="return confirmarDeletarGuia()">
								<g:message code="remover"/>
							</g:link>
						</td>
					</tr>
				</g:each>			
			</g:else>
		</tbody>
	</table>
</div>
